﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using MaxLeaf.Common;
using MySql.Data.MySqlClient;

namespace MaxLeaf.DAL.Web
{
    /// <summary>
    /// 品牌表
    /// </summary>
    public class mary_brandDAL
    {     
        public string Add(DB.DBAccess  dbCon, string strBrand_name)
        {
            string strSql = "insert into mary_brand(brand_name) values(?brand_name);select  @@identity";
            MySqlParameter[] arrParam = new MySqlParameter[] { 
                new MySqlParameter("?brand_name", strBrand_name)                 
            };
            return dbCon.GetValue( strSql, arrParam);
            
        }
    }
}
